package com.zhengqing.app.model.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * <p> API响应状态码枚举类 </p>
 *
 * @author zhengqingya
 * @description
 * @date 2024/5/13 16:40
 */
@Getter
@AllArgsConstructor
public enum ApiResultCodeEnum {

    /**
     * 成功
     */
    SUCCESS(200, "成功"),

    /**
     * 失败
     */
    FAIL(500, "失败");

    /**
     * 状态码
     */
    private final Integer code;
    /**
     * 描述
     */
    private final String desc;

}
